package org.jeecg.modules.tls.oes.question.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.modules.tls.oes.question.entity.OesQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.tls.oes.viewmodel.admin.paper.PaperQuestionVM;
import org.jeecg.modules.tls.oes.viewmodel.admin.question.QuestionEditRequestVM;

import java.util.List;

/**
 * @Description: oes_question
 * @Author: jeecg-boot
 * @Date:   2022-07-15
 * @Version: V1.0
 */
public interface IOesQuestionService extends IService<OesQuestion> {
    public void insertQuestion(QuestionEditRequestVM model);

    IPage<OesQuestion> getQuestionPge(QueryWrapper<OesQuestion> questionQueryWrapper, Integer pageIndex, Integer pageSize);

    void deleteQuestion(Integer id);

    List<QuestionEditRequestVM> getQuestionItems(List<PaperQuestionVM> paperQuestionVMS);

    QuestionEditRequestVM getQuestionById(Integer id);

    void updateQuetion(QuestionEditRequestVM model);
}
